<script setup lang="ts">
    'data-tauri-drag-region'
</script>

<template>
    <div class="title-bar" data-tauri-drag-region>
        <div class="title-left" data-tauri-drag-region>
            <slot name = "left"></slot>
        </div>
        <div class="title-center" data-tauri-drag-region>
            <slot name = "default"></slot>
        </div>
        <div class="title-right" data-tauri-drag-region>
            <slot name = "right"></slot>
        </div>
    </div>
</template>

<style>
.title-bar {
    width: 100vw;
    height: 30px;
    background: white !important;
    position: relative;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.title-left {
    float: left;
    width:33.33333%;
    height: 30px;
    text-align: left;
}

.title-center {
    float: left;
    width:33.33333%;
    height: 30px;
    text-align: center;
}

.title-right {
    float: left;
    width:33.33333%;
    height: 30px;
    text-align: right;
}

</style>